#!/bin/bash

# 指定目标文件路径
file_path="/boot/orangepiEnv.txt"

# 内容
content="
verbosity=1
bootlogo=false
console=both
disp_mode=1920x1080p60
overlay_prefix=sun50i-h6
rootdev=UUID=ec9348ec-5bc4-4cf0-bb58-e34cad311a94
rootfstype=ext4
overlays=uart3
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
"

# 以管理员权限清空文件并写入内容
echo "$content" | sudo tee $file_path > /dev/null

echo "串口修改完成"